-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX JS Console errors and warnings #1698
FIX JS Console errors and warnings #1698
Conversation
19edaaf
to
aa8c60a
Compare
this.setComponent(ReactField); | ||
this._super(); | ||
this.refresh(); | ||
if (schema) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In first load Entwine this.data('schema')
method returns null.
@@ -166,12 +166,12 @@ SearchableDropdownField.propTypes = { | |||
multi: PropTypes.bool.isRequired, | |||
name: PropTypes.string.isRequired, | |||
placeholder: PropTypes.string.isRequired, | |||
onChange: PropTypes.func.isRequired, | |||
onChange: PropTypes.func, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this method is always required. This recommendation gives advice to use defaultProps
instead of isRequired
if we are not sure that this value will be provided.
options: PropTypes.arrayOf(PropTypes.object), | ||
optionUrl: PropTypes.string, | ||
passRef: PropTypes.bool.isRequired, | ||
searchable: PropTypes.bool.isRequired, | ||
value: PropTypes.any.isRequired, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well. We don't have any values in a new field and pass value
as null
.
aa8c60a
to
1df1ee7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please retarget to
2.2
since this is a bug that should be resolved prior to tagging 5.2.0 stable - There is still no formfield displaying. A field should be displayed (that's the main thing the issue is about - the console errors were just added to help diagnose what's causing the problem)
I haven't looked at the actual code yet, just tried locally and saw that the form field still doesn't display.
Close in favour of #1699 |
Description
SearchableDropdownField
was tested with LinkField, Elemental and simply on a Page. There are not any related errors or warnings in dev or prod.Parent issue
SearchableDropdownField
doesn't work in form modal #1690